package cn.hicard.risk.dao.bd.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.hicard.risk.dao.BaseDao;
import cn.hicard.risk.dao.bd.CardbinDao;
import cn.hicard.risk.entity.BdCardbin;

@Repository
public class CardbinDaoImpl extends BaseDao<BdCardbin> implements CardbinDao {
		
	public List<String> getCardIssues() throws Exception{
		String hql = "SELECT DISTINCT issueData FROM BdCardbin WHERE cardType != 0 ";
		@SuppressWarnings("unchecked")
		List<String> list = super.findFieldsByHql(hql);
		return list;		
	}

	public List<BdCardbin> getAll() throws Exception{
		String hql = "FROM BdCardbin";
		return super.findByHql(hql);
	}
}
